package com.example.jyh_androidhttp_blood;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class ListDialog extends Activity {
	TextView tv;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.item_dialog);
	    
	    Intent i = getIntent();
	    BloodEntityObject obj = (BloodEntityObject)i.getSerializableExtra("ARRAY");

	    String str = "blood id:"+obj.bloodId+"\nblood Type:"+obj.bloodType+"\nblood Value:"+obj.bloodValue+
	    		"\npatient Name:"+obj.patientName+"\ndonation Type:"+obj.donationType+"\nhospital:"+
	    		obj.hospital+"\nhospital Phone:"+obj.hospitalPhone+"\ninsert Date:"+obj.insertDate+
	    		"\ncare Name:"+obj.careName+"\ncare Phone:"+obj.carePhone+"\nrelation Text:"+obj.relationText+"\nstatus Text:"+obj.statusText;
	    
	    tv = (TextView)findViewById(R.id.dialog);
	    tv.setText(str);
	    
	    // TODO Auto-generated method stub
	}

}
